package com.oop.demo08;

public class Person {
    // 2nd
    {
        System.out.println("匿名代码块");
    }

    // 1st
    static{
        System.out.println("静态代码块");
    }

    //3rd
    public Person() {
        System.out.println("构造方法");
    }

    public static void main(String[] args) {
        Person person = new Person();
        System.out.println("======");
        Person person1 = new Person();
    }
}
/*
静态代码块
匿名代码块
构造方法
======
匿名代码块
构造方法
 */
